package com.rentplant.mapper;

import com.alibaba.fastjson.JSONObject;
import com.rentplant.Pojo.itemcollect;
import com.rentplant.Pojo.itemcollectanduser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper  //申明作为底层交互
@Repository
public interface itemCollectMapper {

    //查找是否收藏
    public List<itemcollect> itemCollect(JSONObject iteminfo);

    //收藏物品
    public boolean addItemCollect(JSONObject iteminfo);

    //取消物品收藏
    public boolean delItemCollect(JSONObject iteminfo);

    //展示用户收藏
    public List<itemcollectanduser>showItemCollect(JSONObject userinfo);

}
